package com.ruoyi.application.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.application.mapper.ApplicationMapper;
import com.ruoyi.application.domain.Application;
import com.ruoyi.application.service.IApplicationService;

/**
 * 报名信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-04
 */
@Service
public class ApplicationServiceImpl implements IApplicationService 
{
    @Autowired
    private ApplicationMapper applicationMapper;

    /**
     * 查询报名信息
     * 
     * @param id 报名信息主键
     * @return 报名信息
     */
    @Override
    public Application selectApplicationById(Long id)
    {
        return applicationMapper.selectApplicationById(id);
    }

    /**
     * 查询报名信息列表
     * 
     * @param application 报名信息
     * @return 报名信息
     */
    @Override
    public List<Application> selectApplicationList(Application application)
    {
        return applicationMapper.selectApplicationList(application);
    }

    /**
     * 新增报名信息
     * 
     * @param application 报名信息
     * @return 结果
     */
    @Override
    public int insertApplication(Application application)
    {
        return applicationMapper.insertApplication(application);
    }

    /**
     * 修改报名信息
     * 
     * @param application 报名信息
     * @return 结果
     */
    @Override
    public int updateApplication(Application application)
    {
        return applicationMapper.updateApplication(application);
    }

    /**
     * 批量删除报名信息
     * 
     * @param ids 需要删除的报名信息主键
     * @return 结果
     */
    @Override
    public int deleteApplicationByIds(Long[] ids)
    {
        return applicationMapper.deleteApplicationByIds(ids);
    }

    /**
     * 删除报名信息信息
     * 
     * @param id 报名信息主键
     * @return 结果
     */
    @Override
    public int deleteApplicationById(Long id)
    {
        return applicationMapper.deleteApplicationById(id);
    }
}
